#define _CRT_SECURE_NO_WARNINGS 1

#include<vector>
#include<algorithm>
#include<unordered_set>

using namespace std;

vector<int> findEvenNumbers(vector<int>& digits) {
    unordered_set<int> nums;
    int n = digits.size();
    for (int i = 0; i < n; i++)
        for (int j = 0; j < n; j++)
            for (int k = 0; k < n; k++)
            {
                if (i == j || i == k || j == k)
                    continue;
                int num = digits[i] * 100 + digits[j] * 10 + digits[k];
                if (num >= 100 && num % 2 == 0)
                    nums.insert(num);
            }

    vector<int> res;
    for (auto num : nums)
        res.push_back(num);
    sort(res.begin(), res.end());
    return res;
}

int main()
{
    vector<int> v = { 2,1,3,0 };
    findEvenNumbers(v);
    return 0;
}